Skip to content

feat(gallery): add LFM3 1.7B Artemis - #13214

Open
Dorijan10 wants to merge 1 commit into
mudler:masterfrom
Dorijan10:feature/gallery-lfm3-1.7b-artemis
Open

Dorijan10 wants to merge 1 commit into
mudler:masterfrom
Dorijan10:feature/gallery-lfm3-1.7b-artemis

Conversation

@Dorijan10

Copy link
Copy Markdown
Contributor

Description

Adds lfm3-1.7b-artemis-q4-k-m, TurinTech's Artemis Q4_K_M build of Liquid AI's LFM3 1.7B, from turintech/LFM3-1.7B-Artemis-GGUF. The repo has one weight file, LFM3-1.7B-Artemis-Q4_K_M.gguf, and no projector or drafter.

The entry follows the Qwen3.5 Artemis entries from #12928: virtual.yaml with the embedded chat template (use_jinja:true, use_tokenizer_template: true) and the 8192-token context the card measures (the GGUF declares 262,144). It uses license lfm1.0 as the lfm3-audio entries do, function.automatic_tool_parsing_fallback: true, and no sampling parameters.

Unlike #13156 and #13170, which default their entries to thinking off with reasoning_effort: none, this entry keeps thinking at the template default, which is on. With thinking off, a short text request ("What is the capital of France? Answer in one word.") ended with a stray </think> and a repeated answer (Paris</think>Paris) on 11 of 20 replies from this file and 2 of 20 from Liquid AI's own Q4_K_M. LocalAI does not strip the tag while reasoning is disabled, and Liquid AI's card warns that enable_thinking=False "can be inconsistent". With thinking on, none of 30 replies leaked (20 text, 10 tool), at a median of about 55 completion tokens, and every tool call was right. Liquid AI's recommended sampling (temperature 0.1, top_k 50, repetition penalty 1.1) made the thinking-off leak worse (18 of 20) and did not help with thinking on, so the entry sets none. A client can still turn thinking off for one request with "reasoning_effort": "none" or "metadata": {"enable_thinking": "false"}.

Measured comparison from the model card at 06fab8cd5f9e, with thinking off:

File Size Tool-use decisions (of 64) IFEval strict (of 64) Cut off at the cap (of 128)
TurinTech Q4_K_M 1.10 GB 58 58 0
bartowski Q4_K_M 1.12 GB 59 56 0
Liquid AI Q4_K_M 1.10 GB 51 56 1
bartowski Q4_K_S 1.05 GB 58 53 2
Liquid AI QAD-Q4_0 (separately trained) 1.05 GB 57 54 1
bartowski IQ4_XS 1.00 GB 56 60 0
BF16 original (run as F32) 3.47 GB 58 58 0

The card describes these as "a development panel: the file was checked on the same cases before its release", "so they are not an independent test", and says "the card claims no difference between files".

Notes for Reviewers

  • Card and file checked at main 06fab8cd5f9e, which the icon URL pins; the file URI uses resolve/main. The sha256 fc1781679f92… matches the LFS metadata, x-linked-etag and the card's checksum table. A fork run that downloads every TurinTech file in the library and checks it with .github/check_and_update.py, the byte sha256 and the HF security scan passed for all 23: https://github.com/Dorijan10/LocalAI/actions/runs/43460355210
  • The GGUF architecture is lfm3. Its template is byte-identical to LiquidAI/LFM3-1.7B chat_template.jinja, which sets enable_thinking | default(true) and does not read reasoning_effort.
  • llama.cpp: the card needs b11960 or newer. LocalAI v4.12.1's default cpu-llama-cpp backend reports unknown model architecture: 'lfm3'. The development backend loads it (cpu-llama-cpp-development, master-cpu-llama-cpp, with LOCALAI_PREFER_DEV_BACKENDS=true), so the entry works on master builds now and on the default backend from the next release. The existing lfm3-1.7b-uncensored is in the same position, since its GGUF is also lfm3.
  • The entry sits directly after lfm3-1.7b-uncensored, the last entry in gallery/models/index.yaml, away from the lines feat(gallery): add Nemotron 3.5 Bolt E4B Artemis variants #13156 and fix(gallery): default the Qwen3.5 Artemis entries to thinking off #13170 touch.
  • New test, core/gallery/lfm3_artemis_entries_test.go: the entry installs exactly the one weight with the published sha256 and a resolve/main URI, sets no mmproj, and has options of exactly use_jinja:true with neither reasoning_effort nor reasoning. It fails when reasoning_effort: none is added.
  • gallery/index.yaml was regenerated with modelcatalog. These passed: go test ./scripts/models/..., the five library tests, the gallery/index.yaml|gallery variant lint helpers Ginkgo focus (57 specs, including the 2 new ones) and git diff --check.
  • Smoke test on the v4.12.1 release binary, CPU, development backend, a local copy of this branch's gallery and max_tokens 1500. The installed config has no reasoning_effort, and no content held think tags. Completion tokens are in brackets. The text request returned Paris with reasoning (50). The tool request returned get_weather with {"city":"Paris"} and reasoning (64), and the same call without reasoning with "reasoning_effort": "none" (18) and with "metadata": {"enable_thinking": "false"} (18). The text request sent again returned Paris with reasoning (107).

Sources:

Signed commits

  • Yes, I signed my commits.
  • Documentation updated (docs/content/) for user-facing changes, or not applicable

Add TurinTech's Artemis Q4_K_M build of Liquid AI's LFM3 1.7B with an
8,192-token context. Thinking stays at the chat template's default, on:
with it off the model often ends short replies with a stray </think>,
which LocalAI does not strip while reasoning is disabled. A gallery test
pins the file and options.

Assisted-by: Claude:claude-opus-5-5
Signed-off-by: Dorian Magasic <dorian.magasic@turintech.ai>
@Dorijan10
Dorijan10 force-pushed the feature/gallery-lfm3-1.7b-artemis branch from d443d17 to be57fde Compare November 23, 2026 11:57

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant